package android.slc.box.db.exception;

/**
 * @author slc
 * @date 2023/04/19 下午 7:36
 */
public class DbEntityServiceException extends RuntimeException {
    private int code;

    public DbEntityServiceException() {
    }

    public DbEntityServiceException(int code) {
        super();
        this.code = code;
    }

    public DbEntityServiceException(String message) {
        super(message);
    }

    public DbEntityServiceException(int code, String message) {
        super(message);
        this.code = code;
    }


    public DbEntityServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public DbEntityServiceException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public DbEntityServiceException(Throwable cause) {
        super(cause);
    }

    public DbEntityServiceException(int code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public DbEntityServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public DbEntityServiceException(int code, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
